package com.forum.framework.common.pojo;

import java.io.Serializable;

/**
 * 排序字段
 *
 * @author zihan.ouyang
 */
public class SortingField implements Serializable {
    /**
     * 升序
     */
    public static final String ORDER_ASC = "asc";
    /**
     * 降序
     */
    public static final String ORDER_DESC = "desc";
    /**
     * 排序字段
     */
    private String field;
    /**
     * 排序方式
     */
    private String order;

    public SortingField() {
    }

    public SortingField(String order, String field) {
        this.order = order;
        this.field = field;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
